﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VCC.Site.ViewModels.BoxCategoriesModel>" %>
<div class="news-list-border-background">
    
        <%
              foreach (var m in Model.ParentCategory)
              {
          %>
          <div class="hold-cate">
          <ul class="list-cate-left">
                <li>
                <a class="prcate" href="<%=Html.Encode(Model.Domain + m.ShortName)%>" title="<%=Html.Encode(m.Name)%>"><%=Html.Encode(m.Name)%></a>
                <%var childs = m.Categories.Where(e => e.PubYN == true).OrderBy(e => e.Priority).ToList();
                  if (childs.Count > 0)
                  { %>
                <ul style="padding-left:15px;">
                    <%foreach (var c in childs)
                      {
                      %>
                    <li style="overflow: hidden;height:22px;"><a href="<%=Html.Encode(Model.Domain + c.ShortName)%>" title="<%=Html.Encode(c.Name)%>"><%=Html.Encode(c.Name)%></a></li> 
                    <%} %>
                </ul>
                <%} %>
                </li>
            </ul>
        </div>
        <%} %>
    
</div>

